<?php

use think\Route;
Route::rule('test','index/Index/test','GET');

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    
    //商城模块
    'ads'=>['mall/Ad/index',['method'=>'GET']],
    'app'=>['index/Index/getApp',['method'=>'GET']],
    'goods-cate'=>['mall/GoodsCate/index',['method'=>'GET']],
    'notice'=>['mall/Notification/index',['method'=>'GET']],
    'coupon'=>['mall/Coupon/getVoucher',['method'=>'GET']],
    'goods'=>['mall/goods/serach',['method'=>'GET']],
    'details/:id'=>['mall/goods/getDetail',['method'=>'GET']],
    'navigation'=>['index/Index/navigation',['method'=>'GET']],
    'api'=>['index/Api/index',['method'=>'GET']],
    
];
